package com.bjpowernode.beans;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.context.annotation.PropertySource;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Value {
    String id;

    @NotNull(message = "Value.value.NotNull")
    @NotEmpty(message = "Value.value.NotEmpty")
    String value;
    String text;
    @Min(value = 1, message = "Value.orderNo.Min")
    @Max(value = 9999999, message = "Value.orderNo.Max")
    int orderNo;
    String typeCode;
    Type dictionaryType;
}
